package com.csweimei.rentmanagementtreasure.http.entity;

import android.view.View;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class CustomerBean extends BaseResult implements Serializable {
    @SerializedName("data")
    private List<DataDTO> data;

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO implements Serializable {
        @SerializedName("id")
        private int id;
        @SerializedName("userid")
        private int userid;
        @SerializedName("customImg")
        private String customImg;
        @SerializedName("name")
        private String name;
        @SerializedName("IDCard")
        private String iDCard;
        @SerializedName("sex")
        private String sex;
        @SerializedName("phone")
        private String phone;
        @SerializedName("WeChat")
        private String weChat;
        @SerializedName("customType")
        private String customType;
        @SerializedName("addtime")
        private String addtime;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUserid() {
            return userid;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }

        public String getCustomImg() {
            return customImg;
        }

        public void setCustomImg(String customImg) {
            this.customImg = customImg;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getIDCard() {
            return iDCard;
        }

        public void setIDCard(String iDCard) {
            this.iDCard = iDCard;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getWeChat() {
            return weChat;
        }

        public void setWeChat(String weChat) {
            this.weChat = weChat;
        }

        public int showAj() {
            if (customType.contains("A")){
                return View.VISIBLE;
            }else {
                return View.GONE;
            }
        }

        public int showBj() {
            if (customType.contains("B")){
                return View.VISIBLE;
            }else {
                return View.GONE;
            }
        }

        public int showCj() {
            if (customType.contains("C")){
                return View.VISIBLE;
            }else {
                return View.GONE;
            }
        }

        public String getCustomType() {
            return customType;
        }

        public void setCustomType(String customType) {
            this.customType = customType;
        }

        public String getAddtime() {
            return addtime;
        }

        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }
    }
}
